{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>玩家答题日志</h5>
        </div>
        <div class="ibox float-e-margins">
        
        <div class="ibox-content">         
            <!--搜索框开始-->
            <div class="row">
                <div class="col-sm-13">
                    <form name="admin_list_sea" class="form-search" method="get" action="{:url('index')}">

                        <div class="col-sm-4" id="data_5">
                            <div class="input-daterange input-group" id="datepicker">
                                <input type="text" class="input-mini form-control" placeholder="开始时间" name="start" id="start" value="{$Request.param.start}"/>
                                <span class="input-group-addon">~</span>
                                <input type="text" class="input-mini form-control" placeholder="结束时间" name="end" id="end" value="{$Request.param.end}" />
                            </div>
                        </div>                        

                        <div class="col-sm-3">
                            <div class="input-group">
                                <span class="input-group-btn">
                                    <button type="submit" class="btn btn-primary"><i class="fa fa-search"></i> 搜索</button>
                                </span>
                               
                            </div>
                        </div>

                    </form>

                        <a href="{:url('index',['start'=>$Request.param.start,'end'=>$Request.param.end,'answer'=>'export'])}" style="margin-left: 10px;"><input type="hidden" name="answer" value="export" /><button class="btn btn-primary" type="submit">导出玩家答题日志</button></a>
                 
                </div>

            </div>
            <!--搜索框结束-->
            <div class="hr-line-dashed"></div>

            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th width="5%">ID</th>
                                <th width="10%">头像</th>
                                <th width="10%">用户昵称</th>
                                <th width="10%">当前段位</th>
                                <th width="5%">胜场数</th>
                                <th width="5%">负场数</th>
                                <th width="5%">王者币</th>
                                <th width="5%">经验值</th>
                                <th width="5%">星星数</th>
                                <th width="5%">PK次数</th>
                            </tr>
                        </thead>
                        <tbody id="article_list">
                            {foreach name="lists" item="vo"}
                                <tr class="long-td">
                                    <td>{$vo.id}</td>
                                    <td><img alt="image" class="img-circle" width="70px" height="70px" src="{$vo.avatar}" /></td>
                                    <td>{$vo.display_name}</td>          
                                    <td>{$vo.grad_name}</td>          
                                    <td>{$vo.count_wins}</td>
                                    <td>{$vo.count_changshu-$vo.count_wins}</td>
                                    <td>{$vo.points}</td>
                                    <td>{$vo.exp}</td>
                                    <td>{$vo.curr_grad_start}</td>
                                    <td>{$vo.count}</td>
                                </tr>
                            {/foreach}
                        </tbody>
                    </table>
                </div>
                <!-- 分页 -->
                <div id="Pages">  {$page} </div>
            </div>
        </div>
    </div>
</div>
<!-- End Panel Other -->
</div>
{include file="public/footer" /}
<script type="text/javascript">
    
    $('#data_5 .input-daterange').datepicker({
        keyboardNavigation: false,
        forceParse: false,
        autoclose: true
    });
</script>
</body>
</html>